package com.dailygreetings.dailygreetings.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
 * @BelongsProject: daily-greetings
 * @BelongsPackage: com.dailygreetings.dailygreetings.config
 * @Author: shanzhengfei
 * @CreateTime: 2024-11-21  17:35
 * @Description: 企微应用配置
 * @Version: 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "wechat")
public class WechatConfig {
    private String corpid;
    private String corpsecret;
    private String touser;
    private int agentid;
    private News news;
    @Data
    public static class News {
        private String title;
        private String description;
        private String url;
        private String picUrl;
    }
}
